package edu.udel.mboch.towerdefense;

public class TDDemo
{	
	public static void main(String[] args)
	{
		Grid grid = Levels.loadFromStringSP(Levels.LEVEL1);
		SinglePlayerTDState state = new SinglePlayerTDState(grid, new SingleAIPlayer("Thor"));
		Game game = new SinglePlayerGame(state);
		game.addActor(state.getPlayer());
		game.addActor(new TimeActor());
		while(!game.isEnd())
		{
			game.getState().print();
			game.update();
		}
		game.getState().print();
		System.out.println(game.getState().getPlayer().getName() + " has won the game!");
	}
	
	/*public static void main(String[] args)
	{
		BattleGrid grid = Levels.loadFromStringB(Levels.LEVEL3);
		BattleTDState state = new BattleTDState(grid, new BattleAIPlayer("Thor"), new BattleAIPlayer("Zeus"));
		BattleGame game = new BattleGame(state);
		game.addActor(state.getPlayer());
		game.addActor(state.getPlayer2());
		game.addActor(new TimeActor());
		while(!game.isEnd())
		{
			game.getState().print();
			game.update();
		}
		game.getState().print();
		if(game.getWinner()!=null)
			System.out.println(game.getWinner().getName() + " has won the game!");
		else
			System.out.println("It's a draw!");
	}*/
}
